import { axios } from '@/utils/request'

/**
 * 查询相册
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumPage (parameter) {
  return axios({
    url: '/album/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 相册列表
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumList (parameter) {
  return axios({
    url: '/album/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加相册
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumAdd (parameter) {
  return axios({
    url: '/album/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑相册
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumEdit (parameter) {
  return axios({
    url: '/album/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除相册
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumDelete (parameter) {
  return axios({
    url: '/album/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出相册
 *
 * @author Johnnie Wind
 * @date 2021-10-06 21:35:24
 */
export function albumExport (parameter) {
  return axios({
    url: '/album/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
